package ren.kane.asdppp.transaction.change;

import ren.kane.asdppp.Employee;

/**
 * @author renrk(1275) on 2019-04-20 8:59 PM
 **/
public class ChangeNameTransaction extends ChangeEmployeeTransaction {

    private String name;

    public ChangeNameTransaction() {
    }

    public ChangeNameTransaction(int empId, String name) {
        super(empId);
        this.name = name;
    }

    @Override
    protected void change(Employee employee) {
        employee.setName(name);
    }
}
